package com.shen.pojo;

/**
 * Author:shen
 * CreateDate:2020/4/28.
 * Function:
 */
public class Car {
    private int displacement;//排量
    private int weight;//重量
    private String brand;//品牌
    private int horsepower;//马力

    public Car() {
    }

    public Car(int displacement, int weight, String brand, int horsepower) {
        this.displacement = displacement;
        this.weight = weight;
        this.brand = brand;
        this.horsepower = horsepower;
    }

    public int getDisplacement() {
        return displacement;
    }

    public void setDisplacement(int displacement) {
        this.displacement = displacement;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getHorsepower() {
        return horsepower;
    }

    public void setHorsepower(int horsepower) {
        this.horsepower = horsepower;
    }

    @Override
    public String toString() {
        return "Car{" +
                "displacement=" + displacement +
                ", weight=" + weight +
                ", brand='" + brand + '\'' +
                ", horsepower=" + horsepower +
                '}';
    }
}
